package com.by.orders.entity.dto;

import com.by.orders.entity.OrderItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDto {
    @Schema(description = "订单ID" )
    private Integer orderId;

    @Schema(description = "订单编号" )
    private String orderCode;

    @Schema(description = "用户ID" )
    private Integer userId;

    @Schema(description = "订单商品总数" )
    private Integer allCount;

    @Schema(description = "总值" )
    private BigDecimal total;

    @Schema(description = "订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败" )
    private Integer status;

    @Schema(description = "订单项" )
    List<OrderItem> orderItemList;

}
